<!DOCTYPE html>

<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>问题生成-学生端</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

	<!-- Open Sans font from Google CDN -->
	<link href="/static/css/css.css" rel="stylesheet" type="text/css">

	<!-- LanderApp's stylesheets -->


{#      <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">#}
{#    <script src="https://code.jquery.com/jquery.js"></script>#}
{##}
{#      <script src="js/bootstrap.min.js"></script>#}
{##}


	<link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="/static/css/landerapp.min.css" rel="stylesheet" type="text/css">
	<link href="/static/css/widgets.min.css" rel="stylesheet" type="text/css">
	<link href="/static/css/pages.min.css" rel="stylesheet" type="text/css">
	<link href="/static/css/rtl.min.css" rel="stylesheet" type="text/css">
	<link href="/static/css/themes.min.css" rel="stylesheet" type="text/css">

	<!--[if lt IE 9]>
		<script src="/static/assets/javascripts/ie.min.js"></script>
	<![endif]-->

</head>


<!-- 1. $BODY ======================================================================================

	Body

	Classes:
	* 'theme-{THEME NAME}'
	* 'right-to-left'      - Sets text direction to right-to-left
	* 'main-menu-right'    - Places the main menu on the right side
	* 'no-main-menu'       - Hides the main menu
	* 'main-navbar-fixed'  - Fixes the main navigation
	* 'main-menu-fixed'    - Fixes the main menu
	* 'main-menu-animated' - Animate main menu
-->
<body class="theme-default main-menu-animated page-profile">

<script>var init = [];</script>
<!-- Demo script --> <script src="/static/js/demo.js"></script> <!-- / Demo script -->

<div id="main-wrapper">


<!-- 2. $MAIN_NAVIGATION ===========================================================================

	Main navigation
-->
	<div id="main-navbar" class="navbar navbar-inverse" role="navigation">
		<!-- Main menu toggle -->
		<button type="button" id="main-menu-toggle"><i class="navbar-icon fa fa-bars icon"></i><span class="hide-menu-text">HIDE MENU</span></button>

		<div class="navbar-inner">
			<!-- Main navbar header -->
			<div class="navbar-header">

				<!-- Logo -->
				<a href="#" class="navbar-brand">
					<strong>问题生成--答题系统</strong>
				</a>

				<!-- Main navbar toggle -->
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navbar-collapse"><i class="navbar-icon fa fa-bars"></i></button>

			</div> <!-- / .navbar-header -->

			<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
				<div>
					<ul class="nav navbar-nav">
						<li>
							<a href="/service/myhome/">Home</a>
						</li>

					</ul> <!-- / .navbar-nav -->

					<div class="right clearfix">
						<ul class="nav navbar-nav pull-right right-navbar-nav">

							<li>
								<form class="navbar-form pull-left">
									<input type="text" class="form-control" placeholder="Search">
								</form>
							</li>

							<li class="dropdown">
								<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
									<img src="/static/picture/{% if request.session.gender == '男' %}1.jpg{% else %}2.jpg{% endif %}" alt="">
									<span>{{request.session.name }}</span>
								</a>
								<ul class="dropdown-menu">
									<li><a href="#">Profile <span class="label label-warning pull-right">new</span></a></li>
									<li><a href="#">Account <span class="badge badge-primary pull-right">new</span></a></li>
									<li><a href="#"><i class="dropdown-icon fa fa-cog"></i>&nbsp;&nbsp;Settings</a></li>
									<li class="divider"></li>
									<li><a href="/service/operate_logout/"><i class="dropdown-icon fa fa-power-off"></i>&nbsp;&nbsp;Log Out</a></li>
								</ul>
							</li>
						</ul> <!-- / .navbar-nav -->
					</div> <!-- / .right -->
				</div>
			</div> <!-- / #main-navbar-collapse -->
		</div> <!-- / .navbar-inner -->
	</div> <!-- / #main-navbar -->
<!-- /2. $END_MAIN_NAVIGATION -->


<!-- 4. $MAIN_MENU =================================================================================

		Main menu


-->
<div id="main-menu" role="navigation">
	<div id="main-menu-inner">
		<div class="menu-content top" id="menu-content-demo">
			<!-- Menu custom content demo
				 Javascript: html/assets/demo/demo.js
			 -->
			<div>
				<div class="text-bg"><span class="text-slim">Welcome,</span> <span class="text-semibold">{{request.session.name }}</span></div>

				<img src="/static/picture/{% if request.session.gender == '男' %}1.jpg{% else %}2.jpg{% endif %}" alt="" class="">
				<div class="btn-group">
					<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-envelope"></i></a>
					<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-user"></i></a>
					<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-cog"></i></a>
					<a href="/service/operate_logout/" class="btn btn-xs btn-danger btn-outline dark"><i class="fa fa-power-off"></i></a>
				</div>
				<a href="#" class="close">&times;</a>
			</div>
		</div>
		<ul class="navigation">

			<li class="active">
				<a href="/service/myhome/"><i class="menu-icon fa fa-user"></i><span class="mm-text">用户</span></a>
			</li>
{#			<li class="mm-dropdown">#}
{#				<a href="#"><i class="menu-icon fa fa-bar-chart-o"></i><span class="mm-text">选择</span></a>#}
{#				<ul>#}
{#					<li >#}
{#							<a tabindex="-1" href="/choice/stu_choice_answer/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">答题</span></a>#}
{#						</li>#}
{#						<li>#}
{#							<a tabindex="-1" href="/choice/stu_choice_wrong/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">我的错题</span></a>#}
{#						</li>#}
{#				</ul>#}
{#			</li>#}
			<li class="mm-dropdown ">
				<a href="#"><i class="menu-icon fa fa-edit"></i><span class="mm-text">填空</span></a>
				<ul>
					<li >
						<a tabindex="-1" href="/completion/stu_completion_answer/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">答题</span></a>
					</li>
					<li>
						<a tabindex="-1" href="/completion/stu_completion_wrong/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">我的错题</span></a>
					</li>
				</ul>
			</li>
			<li class="mm-dropdown">
				<a href="#"><i class="menu-icon fa fa-book"></i><span class="mm-text">简答</span></a>
				<ul>
					<li>
							<a tabindex="-1" href="/shortAnswer/stu_shortAnswer_answer/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">答题</span></a>
						</li>
						<li>
							<a tabindex="-1" href="/shortAnswer/stu_shortAnswer_wrong/"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">我的错题</span></a>
						</li>
				</ul>
			</li>




		</ul> <!-- / .navigation -->

	</div> <!-- / #main-menu-inner -->
</div> <!-- / #main-menu -->
<!-- /4. $MAIN_MENU -->

	<script type="text/javascript"> window.jQuery || document.write('<script src="/static/assets/javascripts/jquery.min.js">'+"<"+"/script>"); </script>
<!-- <![endif]-->
<!--[if lte IE 9]>
	<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
<![endif]-->
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/landerapp.min.js"></script>

<div id="content-wrapper">

    {% block content %}

    {% endblock content %}

</div> <!-- / #main-wrapper -->
<div id="main-menu-bg"></div>

<!--[if !IE]> -->


<script >
$(document).ready(function () {
	// each 是 为每一个匹配的元素 执行定义的方法
    $(".mm-dropdown ul").find("li").each(function () {
      var a = $(this).find("a:first")[0];
      // location.pathname 获取 当前浏览器上的url 地址
      if ($(a).attr("href") === location.pathname) {
        $(this).addClass("active");
        if(($(this).parent()).parent('li')){
             (($(this).parent()).parent()).addClass("open active");
        }

      } else {
        $(this).removeClass("active");

      }
    });

});
</script >

<!-- LanderApp's javascripts -->

<script type="text/javascript">
	init.push(function () {
		// Javascript code here
	})
	window.LanderApp.start(init);
</script>
</div>
</body>
</html>